package impl

import (
	"context"

	v1 "gitee.com/lcc_dr/restful-api-demo/api/book/v1"
	"google.golang.org/grpc/codes"
	"google.golang.org/grpc/status"
)

func (b *BookServiceImpl) CreateBook(ctx context.Context, req *v1.CreateBookRequest) (replay *v1.Book, err error) {

	b.l.Infof("create book request: %v", req.Name)
	res := &v1.Book{}
	res.Id = "10086"
	return res, nil

}
func (b *BookServiceImpl) QueryBook(context.Context, *v1.QueryBookRequest) (*v1.BookSet, error) {
	return nil, status.Errorf(codes.Unimplemented, "method QueryBook not implemented")
}
func (b *BookServiceImpl) DescribeBook(context.Context, *v1.DescribeBookRequest) (*v1.Book, error) {
	return nil, status.Errorf(codes.Unimplemented, "method DescribeBook not implemented")
}
func (b *BookServiceImpl) UpdateBook(context.Context, *v1.UpdateBookRequest) (*v1.Book, error) {
	return nil, status.Errorf(codes.Unimplemented, "method UpdateBook not implemented")
}
func (b *BookServiceImpl) DeleteBook(context.Context, *v1.DeleteBookRequest) (*v1.Book, error) {
	return nil, status.Errorf(codes.Unimplemented, "method DeleteBook not implemented")
}
